package com.intersult.nutils.net.traffic;

/**
 * @author Dieter Kaeppel
 * @date   16.11.2011
 */
public class TrafficConfig {
	private long connectionDelay;
	private long packageDelay;
	private int maxPackageLength;
	private boolean debug;
	
	/**
	 * Delay on initial connection setup.
	 */
	public long getConnectionDelay() {
		return connectionDelay;
	}
	public void setConnectionDelay(long connectionDelay) {
		this.connectionDelay = connectionDelay;
	}
	
	/**
	 * Package delay in milliseconds (0 for no delay).
	 */
	public long getPackageDelay() {
		return packageDelay;
	}
	public void setPackageDelay(long packageDelay) {
		this.packageDelay = packageDelay;
	}
	
	/**
	 * Maximum length of package, larger packages will be segmented
	 */
	public int getMaxPackageLength() {
		return maxPackageLength;
	}
	public void setMaxpackageLength(int maxPackageLength) {
		this.maxPackageLength = maxPackageLength;
	}
	
	/**
	 * Output debug info to stdout.
	 */
	public boolean isDebug() {
		return debug;
	}
	public void setDebug(boolean debug) {
		this.debug = debug;
	}
}